package com.vfmall.mapper;

import com.vfmall.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface UserMapper {
    public User getByOpenid(String id);

    public void insert(User user);

    @Select("select * from user where id = #{currentId}")
    User getById(Long currentId);

    Integer countByDate(Map map);
}
